[Ivy]
[>Created: Thu Aug 07 14:47:56 ICT 2014]
1478A4CAF9B10679 3.17 #module
>Proto >Proto Collection #zClass
Ts0 TeacherOverviewProcess Big #zClass
Ts0 RD #cInfo
Ts0 #process
Ts0 @TextInP .ui2RdDataAction .ui2RdDataAction #zField
Ts0 @TextInP .rdData2UIAction .rdData2UIAction #zField
Ts0 @TextInP .resExport .resExport #zField
Ts0 @TextInP .type .type #zField
Ts0 @TextInP .processKind .processKind #zField
Ts0 @AnnotationInP-0n ai ai #zField
Ts0 @TextInP .xml .xml #zField
Ts0 @TextInP .responsibility .responsibility #zField
Ts0 @RichDialogInitStart f0 '' #zField
Ts0 @RichDialogProcessStart f5 '' #zField
Ts0 @RichDialogProcessEnd f6 '' #zField
Ts0 @GridStep f8 '' #zField
Ts0 @PushWFArc f9 '' #zField
Ts0 @RichDialog f10 '' #zField
Ts0 @PushWFArc f11 '' #zField
Ts0 @PushWFArc f7 '' #zField
Ts0 @CallSub f3 '' #zField
Ts0 @PushWFArc f4 '' #zField
Ts0 @RichDialogProcessStart f12 '' #zField
Ts0 @RichDialogProcessEnd f13 '' #zField
Ts0 @CallSub f17 '' #zField
Ts0 @PushWFArc f1 '' #zField
Ts0 @PushWFArc f2 '' #zField
Ts0 @PushWFArc f15 '' #zField
Ts0 @GridStep f14 '' #zField
Ts0 @PushWFArc f16 '' #zField
Ts0 @RichDialogProcessStart f18 '' #zField
Ts0 @RichDialogProcessEnd f19 '' #zField
Ts0 @RichDialogProcessStart f20 '' #zField
Ts0 @GridStep f23 '' #zField
Ts0 @PushWFArc f22 '' #zField
Ts0 @RichDialogProcessStart f40 '' #zField
Ts0 @CallSub f41 '' #zField
Ts0 @GridStep f42 '' #zField
Ts0 @PushWFArc f43 '' #zField
Ts0 @PushWFArc f44 '' #zField
Ts0 @PushWFArc f45 '' #zField
Ts0 @GridStep f50 '' #zField
Ts0 @PushWFArc f53 '' #zField
Ts0 @PushWFArc f21 '' #zField
Ts0 @GridStep f54 '' #zField
Ts0 @PushWFArc f55 '' #zField
Ts0 @PushWFArc f24 '' #zField
Ts0 @RichDialogProcessStart f46 '' #zField
Ts0 @GridStep f51 '' #zField
Ts0 @CallSub f48 '' #zField
Ts0 @PushWFArc f52 '' #zField
Ts0 @PushWFArc f49 '' #zField
Ts0 @GridStep f37 '' #zField
Ts0 @PushWFArc f38 '' #zField
Ts0 @PushWFArc f25 '' #zField
Ts0 @GridStep f28 '' #zField
Ts0 @RichDialogProcessStart f65 '' #zField
Ts0 @RichDialogProcessStart f61 '' #zField
Ts0 @RichDialogProcessEnd f35 '' #zField
Ts0 @RichDialogProcessEnd f31 '' #zField
Ts0 @GridStep f67 '' #zField
Ts0 @RichDialogProcessEnd f66 '' #zField
Ts0 @RichDialogProcessStart f26 '' #zField
Ts0 @RichDialogProcessEnd f27 '' #zField
Ts0 @GridStep f33 '' #zField
Ts0 @RichDialogProcessStart f30 '' #zField
Ts0 @GridStep f63 '' #zField
Ts0 @PushWFArc f34 '' #zField
Ts0 @PushWFArc f68 '' #zField
Ts0 @PushWFArc f47 '' #zField
Ts0 @PushWFArc f29 '' #zField
Ts0 @PushWFArc f69 '' #zField
Ts0 @PushWFArc f32 '' #zField
Ts0 @PushWFArc f36 '' #zField
Ts0 @PushWFArc f64 '' #zField
Ts0 @RichDialogProcessStart f39 '' #zField
Ts0 @RichDialogProcessEnd f62 '' #zField
Ts0 @GridStep f71 '' #zField
Ts0 @PushWFArc f72 '' #zField
Ts0 @PushWFArc f70 '' #zField
Ts0 @RichDialogProcessStart f73 '' #zField
Ts0 @RichDialogProcessEnd f74 '' #zField
Ts0 @GridStep f75 '' #zField
Ts0 @PushWFArc f76 '' #zField
Ts0 @PushWFArc f77 '' #zField
>Proto Ts0 Ts0 TeacherOverviewProcess #zField
Ts0 f0 guid 1478A9C639CC93AA #txt
Ts0 f0 type axonactive.vision.training.TeacherOverview.TeacherOverviewData #txt
Ts0 f0 method start(String,String,axonactive.vision.training.entity.User) #txt
Ts0 f0 disableUIEvents true #txt
Ts0 f0 inParameterDecl 'ch.ivyteam.ivy.richdialog.exec.RdMethodCallEvent methodEvent = event as ch.ivyteam.ivy.richdialog.exec.RdMethodCallEvent;
<java.lang.String fullname,java.lang.String role,axonactive.vision.training.entity.User user> param = methodEvent.getInputArguments();
' #txt
Ts0 f0 inParameterMapAction 'out.fullname=param.fullname;
out.role=param.role;
out.user=param.user;
' #txt
Ts0 f0 outParameterDecl '<> result;
' #txt
Ts0 f0 @C|.xml '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<elementInfo>
    <language>
        <name>start(String,String,User)</name>
    </language>
</elementInfo>
' #txt
Ts0 f0 246 62 20 20 13 0 #rect
Ts0 f0 @|RichDialogInitStartIcon #fIcon
Ts0 f5 guid 1478AA454EEC7E88 #txt
Ts0 f5 type axonactive.vision.training.TeacherOverview.TeacherOverviewData #txt
Ts0 f5 actionDecl 'axonactive.vision.training.TeacherOverview.TeacherOverviewData out;
' #txt
Ts0 f5 actionTable 'out=in;
' #txt
Ts0 f5 @C|.xml '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<elementInfo>
    <language>
        <name>logout</name>
        <nameStyle>6,5,7
</nameStyle>
    </language>
</elementInfo>
' #txt
Ts0 f5 950 54 20 20 13 0 #rect
Ts0 f5 @|RichDialogProcessStartIcon #fIcon
Ts0 f6 type axonactive.vision.training.TeacherOverview.TeacherOverviewData #txt
Ts0 f6 950 246 20 20 13 0 #rect
Ts0 f6 @|RichDialogProcessEndIcon #fIcon
Ts0 f8 actionDecl 'axonactive.vision.training.TeacherOverview.TeacherOverviewData out;
' #txt
Ts0 f8 actionTable 'out=in;
' #txt
Ts0 f8 actionCode ivy.session.logoutSessionUser(); #txt
Ts0 f8 type axonactive.vision.training.TeacherOverview.TeacherOverviewData #txt
Ts0 f8 942 116 36 24 20 -2 #rect
Ts0 f8 @|StepIcon #fIcon
Ts0 f9 expr out #txt
Ts0 f9 960 74 960 116 #arcP
Ts0 f10 targetWindow NEW:card: #txt
Ts0 f10 targetDisplay TOP #txt
Ts0 f10 richDialogId axonactive.vision.training.Login #txt
Ts0 f10 startMethod start() #txt
Ts0 f10 type axonactive.vision.training.TeacherOverview.TeacherOverviewData #txt
Ts0 f10 requestActionDecl '<> param;' #txt
Ts0 f10 responseActionDecl 'axonactive.vision.training.TeacherOverview.TeacherOverviewData out;
' #txt
Ts0 f10 responseMappingAction 'out=in;
' #txt
Ts0 f10 windowConfiguration '* ' #txt
Ts0 f10 isAsynch false #txt
Ts0 f10 isInnerRd true #txt
Ts0 f10 userContext '* ' #txt
Ts0 f10 942 180 36 24 20 -2 #rect
Ts0 f10 @|RichDialogIcon #fIcon
Ts0 f11 expr out #txt
Ts0 f11 960 140 960 180 #arcP
Ts0 f7 expr out #txt
Ts0 f7 960 204 960 246 #arcP
Ts0 f3 type axonactive.vision.training.TeacherOverview.TeacherOverviewData #txt
Ts0 f3 processCall 'Functional Processes/DataAccess/ExaminationDAS:getAllExam()' #txt
Ts0 f3 doCall true #txt
Ts0 f3 requestActionDecl '<> param;
' #txt
Ts0 f3 responseActionDecl 'axonactive.vision.training.TeacherOverview.TeacherOverviewData out;
' #txt
Ts0 f3 responseMappingAction 'out=in;
out.listExams=result.listExams;
out.selectedExam=result.listExams.get(0);
' #txt
Ts0 f3 @C|.xml '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<elementInfo>
    <language>
        <name>getAllExam()</name>
        <nameStyle>12,5,7
</nameStyle>
    </language>
</elementInfo>
' #txt
Ts0 f3 238 116 36 24 20 -2 #rect
Ts0 f3 @|CallSubIcon #fIcon
Ts0 f4 expr out #txt
Ts0 f4 256 82 256 116 #arcP
Ts0 f12 guid 1478B2D99C06A904 #txt
Ts0 f12 type axonactive.vision.training.TeacherOverview.TeacherOverviewData #txt
Ts0 f12 actionDecl 'axonactive.vision.training.TeacherOverview.TeacherOverviewData out;
' #txt
Ts0 f12 actionTable 'out=in;
' #txt
Ts0 f12 @C|.xml '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<elementInfo>
    <language>
        <name>selectExam</name>
        <nameStyle>10,5,7
</nameStyle>
    </language>
</elementInfo>
' #txt
Ts0 f12 430 62 20 20 13 0 #rect
Ts0 f12 @|RichDialogProcessStartIcon #fIcon
Ts0 f13 type axonactive.vision.training.TeacherOverview.TeacherOverviewData #txt
Ts0 f13 430 238 20 20 13 0 #rect
Ts0 f13 @|RichDialogProcessEndIcon #fIcon
Ts0 f17 type axonactive.vision.training.TeacherOverview.TeacherOverviewData #txt
Ts0 f17 processCall 'Functional Processes/DataAccess/QuestionDAS:getListQuestionByExamId(Integer)' #txt
Ts0 f17 doCall true #txt
Ts0 f17 requestActionDecl '<java.lang.Integer examId> param;
' #txt
Ts0 f17 requestMappingAction 'param.examId=in.selectedExam.id;
' #txt
Ts0 f17 responseActionDecl 'axonactive.vision.training.TeacherOverview.TeacherOverviewData out;
' #txt
Ts0 f17 responseMappingAction 'out=in;
out.listQuestion=result.listQuestions;
' #txt
Ts0 f17 @C|.xml '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<elementInfo>
    <language>
        <name>getListQuestionByExamId(Integer)</name>
        <nameStyle>32,5,7
</nameStyle>
    </language>
</elementInfo>
' #txt
Ts0 f17 422 116 36 24 20 -2 #rect
Ts0 f17 @|CallSubIcon #fIcon
Ts0 f1 expr out #txt
Ts0 f1 274 128 422 128 #arcP
Ts0 f2 expr out #txt
Ts0 f2 440 196 440 238 #arcP
Ts0 f15 expr out #txt
Ts0 f15 440 140 440 172 #arcP
Ts0 f14 actionDecl 'axonactive.vision.training.TeacherOverview.TeacherOverviewData out;
' #txt
Ts0 f14 actionTable 'out=in;
' #txt
Ts0 f14 actionCode 'import axonactive.vision.training.entity.Examination;
import axonactive.vision.training.dto.QuestionDatatableDTO;
import axonactive.vision.training.dto.QuestionDTO;
in.listQuestionDTO.clear();
for(int i=0; i<in.listQuestion.size(); i++){
	in.listQuestionDTO.add(new QuestionDTO(in.listQuestion.get(i), i));
	ivy.log.info(in.listQuestion.get(i).answer);
}
in.editedQuestionDTO = new QuestionDTO();
in.questionDatatableDTO = new QuestionDatatableDTO(in.listQuestionDTO);
in.isShowCompose = ivy.var.xTraining_Exam_allowComposing;' #txt
Ts0 f14 type axonactive.vision.training.TeacherOverview.TeacherOverviewData #txt
Ts0 f14 @C|.xml '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<elementInfo>
    <language>
        <name>initData</name>
        <nameStyle>8,7
</nameStyle>
    </language>
</elementInfo>
' #txt
Ts0 f14 422 172 36 24 20 -2 #rect
Ts0 f14 @|StepIcon #fIcon
Ts0 f16 expr out #txt
Ts0 f16 440 82 440 116 #arcP
Ts0 f18 guid 14790ACAD55FA133 #txt
Ts0 f18 type axonactive.vision.training.TeacherOverview.TeacherOverviewData #txt
Ts0 f18 actionDecl 'axonactive.vision.training.TeacherOverview.TeacherOverviewData out;
' #txt
Ts0 f18 actionTable 'out=in;
' #txt
Ts0 f18 @C|.xml '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<elementInfo>
    <language>
        <name>composeExam</name>
        <nameStyle>11,5,7
</nameStyle>
    </language>
</elementInfo>
' #txt
Ts0 f18 1046 54 20 20 13 0 #rect
Ts0 f18 @|RichDialogProcessStartIcon #fIcon
Ts0 f19 type axonactive.vision.training.TeacherOverview.TeacherOverviewData #txt
Ts0 f19 1110 246 20 20 13 0 #rect
Ts0 f19 @|RichDialogProcessEndIcon #fIcon
Ts0 f20 guid 14790ACC0552CEA1 #txt
Ts0 f20 type axonactive.vision.training.TeacherOverview.TeacherOverviewData #txt
Ts0 f20 actionDecl 'axonactive.vision.training.TeacherOverview.TeacherOverviewData out;
' #txt
Ts0 f20 actionTable 'out=in;
' #txt
Ts0 f20 @C|.xml '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<elementInfo>
    <language>
        <name>editExam</name>
        <nameStyle>8,5,7
</nameStyle>
    </language>
</elementInfo>
' #txt
Ts0 f20 1174 54 20 20 13 0 #rect
Ts0 f20 @|RichDialogProcessStartIcon #fIcon
Ts0 f23 actionDecl 'axonactive.vision.training.TeacherOverview.TeacherOverviewData out;
' #txt
Ts0 f23 actionTable 'out=in;
' #txt
Ts0 f23 actionCode 'import org.primefaces.context.RequestContext;

RequestContext.getCurrentInstance().execute("editingExamDialog.show()");' #txt
Ts0 f23 type axonactive.vision.training.TeacherOverview.TeacherOverviewData #txt
Ts0 f23 1102 180 36 24 20 -2 #rect
Ts0 f23 @|StepIcon #fIcon
Ts0 f22 expr out #txt
Ts0 f22 1120 204 1120 246 #arcP
Ts0 f40 guid 1479ED857EDB54F5 #txt
Ts0 f40 type axonactive.vision.training.TeacherOverview.TeacherOverviewData #txt
Ts0 f40 actionDecl 'axonactive.vision.training.TeacherOverview.TeacherOverviewData out;
' #txt
Ts0 f40 actionTable 'out=in;
' #txt
Ts0 f40 @C|.xml '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<elementInfo>
    <language>
        <name>removeExam</name>
        <nameStyle>10,5,7
</nameStyle>
    </language>
</elementInfo>
' #txt
Ts0 f40 670 62 20 20 14 1 #rect
Ts0 f40 @|RichDialogProcessStartIcon #fIcon
Ts0 f41 type axonactive.vision.training.TeacherOverview.TeacherOverviewData #txt
Ts0 f41 processCall 'Functional Processes/DataAccess/ExaminationDAS:removeExam(axonactive.vision.training.entity.Examination)' #txt
Ts0 f41 doCall true #txt
Ts0 f41 requestActionDecl '<axonactive.vision.training.entity.Examination removedExam> param;
' #txt
Ts0 f41 requestMappingAction 'param.removedExam=in.selectedExam;
' #txt
Ts0 f41 responseActionDecl 'axonactive.vision.training.TeacherOverview.TeacherOverviewData out;
' #txt
Ts0 f41 responseMappingAction 'out=in;
' #txt
Ts0 f41 @C|.xml '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<elementInfo>
    <language>
        <name>removeExam(Examination)</name>
        <nameStyle>23,5,7
</nameStyle>
    </language>
</elementInfo>
' #txt
Ts0 f41 662 116 36 24 20 -2 #rect
Ts0 f41 @|CallSubIcon #fIcon
Ts0 f42 actionDecl 'axonactive.vision.training.TeacherOverview.TeacherOverviewData out;
' #txt
Ts0 f42 actionTable 'out=in;
' #txt
Ts0 f42 actionCode 'import axonactive.vision.training.entity.Examination;
int index = in.listExams.indexOf(in.selectedExam);
in.listExams.removeAt(index);

if(in.listExams.size()!=0){
	in.selectedExam = in.listExams.get(0);
} else {
	in.selectedExam = new Examination();
}
' #txt
Ts0 f42 type axonactive.vision.training.TeacherOverview.TeacherOverviewData #txt
Ts0 f42 @C|.xml '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<elementInfo>
    <language>
        <name>resetSeletedExam</name>
        <nameStyle>16,7
</nameStyle>
    </language>
</elementInfo>
' #txt
Ts0 f42 662 180 36 24 20 -2 #rect
Ts0 f42 @|StepIcon #fIcon
Ts0 f43 expr out #txt
Ts0 f43 680 82 680 116 #arcP
Ts0 f44 expr out #txt
Ts0 f44 680 140 680 180 #arcP
Ts0 f45 expr out #txt
Ts0 f45 662 187 458 133 #arcP
Ts0 f50 actionDecl 'axonactive.vision.training.TeacherOverview.TeacherOverviewData out;
' #txt
Ts0 f50 actionTable 'out=in;
' #txt
Ts0 f50 actionCode 'import axonactive.vision.training.enumtype.DialogMode;
import axonactive.vision.training.dto.QuestionDatatableDTO;

in.examDialogTitle = ivy.cms.co("/axonactive/vision/training/msgEditExamDlgHeader");
in.examDialogMode = DialogMode.EDITEXAM;
in.editedExam = in.selectedExam;
in.questionDatatableDTO = new QuestionDatatableDTO(in.listQuestionDTO);' #txt
Ts0 f50 type axonactive.vision.training.TeacherOverview.TeacherOverviewData #txt
Ts0 f50 1166 116 36 24 20 -2 #rect
Ts0 f50 @|StepIcon #fIcon
Ts0 f53 expr out #txt
Ts0 f53 1184 74 1184 116 #arcP
Ts0 f21 expr out #txt
Ts0 f21 1172 140 1132 180 #arcP
Ts0 f54 actionDecl 'axonactive.vision.training.TeacherOverview.TeacherOverviewData out;
' #txt
Ts0 f54 actionTable 'out=in;
' #txt
Ts0 f54 actionCode 'import axonactive.vision.training.enumtype.DialogMode;
import axonactive.vision.training.entity.Examination;
import axonactive.vision.training.dto.QuestionDatatableDTO;

in.examDialogTitle = ivy.cms.co("/axonactive/vision/training/msgAddExamDlgHeader");
in.questionDatatableDTO = new QuestionDatatableDTO();
in.editedExam = new Examination();
in.examDialogMode = DialogMode.COMPOSEEXAM;' #txt
Ts0 f54 type axonactive.vision.training.TeacherOverview.TeacherOverviewData #txt
Ts0 f54 1038 116 36 24 20 -2 #rect
Ts0 f54 @|StepIcon #fIcon
Ts0 f55 expr out #txt
Ts0 f55 1056 74 1056 116 #arcP
Ts0 f24 expr out #txt
Ts0 f24 1068 140 1108 180 #arcP
Ts0 f46 guid 147A506EAACE8AB4 #txt
Ts0 f46 type axonactive.vision.training.TeacherOverview.TeacherOverviewData #txt
Ts0 f46 actionDecl 'axonactive.vision.training.TeacherOverview.TeacherOverviewData out;
' #txt
Ts0 f46 actionTable 'out=in;
' #txt
Ts0 f46 @C|.xml '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<elementInfo>
    <language>
        <name>saveExamDialog</name>
        <nameStyle>14,5,7
</nameStyle>
    </language>
</elementInfo>
' #txt
Ts0 f46 54 54 20 20 11 0 #rect
Ts0 f46 @|RichDialogProcessStartIcon #fIcon
Ts0 f51 actionDecl 'axonactive.vision.training.TeacherOverview.TeacherOverviewData out;
' #txt
Ts0 f51 actionTable 'out=in;
' #txt
Ts0 f51 actionCode 'import axonactive.vision.training.dto.QuestionDTO;

in.listEditedQuestion.clear();
for(QuestionDTO quesDTO : in.questionDatatableDTO.listQues){
	in.listEditedQuestion.add(quesDTO.question);
}
in.editedExam.teacherId = in.user.id;
ivy.log.info(in.user.id);' #txt
Ts0 f51 type axonactive.vision.training.TeacherOverview.TeacherOverviewData #txt
Ts0 f51 46 116 36 24 20 -2 #rect
Ts0 f51 @|StepIcon #fIcon
Ts0 f48 type axonactive.vision.training.TeacherOverview.TeacherOverviewData #txt
Ts0 f48 processCall 'Functional Processes/DataAccess/ExaminationDAS:editExam(List<axonactive.vision.training.entity.Question>,List<axonactive.vision.training.entity.Question>,axonactive.vision.training.entity.Examination)' #txt
Ts0 f48 doCall true #txt
Ts0 f48 requestActionDecl '<List<axonactive.vision.training.entity.Question> listDeletedQuestion,List<axonactive.vision.training.entity.Question> listEditedQuestion,axonactive.vision.training.entity.Examination editExam> param;
' #txt
Ts0 f48 requestMappingAction 'param.listDeletedQuestion=in.listDeletedQuestion;
param.listEditedQuestion=in.listEditedQuestion;
param.editExam=in.editedExam;
' #txt
Ts0 f48 responseActionDecl 'axonactive.vision.training.TeacherOverview.TeacherOverviewData out;
' #txt
Ts0 f48 responseMappingAction 'out=in;
' #txt
Ts0 f48 @C|.xml '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<elementInfo>
    <language>
        <name>editExam(List&lt;Question&gt;,List&lt;Question&gt;,Examination)</name>
    </language>
</elementInfo>
' #txt
Ts0 f48 46 180 36 24 20 -2 #rect
Ts0 f48 @|CallSubIcon #fIcon
Ts0 f52 expr out #txt
Ts0 f52 64 74 64 116 #arcP
Ts0 f49 expr out #txt
Ts0 f49 64 140 64 180 #arcP
Ts0 f37 actionDecl 'axonactive.vision.training.TeacherOverview.TeacherOverviewData out;
' #txt
Ts0 f37 actionTable 'out=in;
' #txt
Ts0 f37 actionCode 'import org.primefaces.context.RequestContext;
in.listDeletedQuestion.clear();
RequestContext.getCurrentInstance().execute("editingExamDialog.hide()");' #txt
Ts0 f37 type axonactive.vision.training.TeacherOverview.TeacherOverviewData #txt
Ts0 f37 158 156 36 24 20 -2 #rect
Ts0 f37 @|StepIcon #fIcon
Ts0 f38 expr out #txt
Ts0 f38 82 188 158 172 #arcP
Ts0 f25 expr out #txt
Ts0 f25 194 159 238 137 #arcP
Ts0 f25 0 0.5000000000000001 0 0 #arcLabel
Ts0 f28 actionDecl 'axonactive.vision.training.TeacherOverview.TeacherOverviewData out;
' #txt
Ts0 f28 actionTable 'out=in;
' #txt
Ts0 f28 actionCode 'import axonactive.vision.training.enumtype.DialogMode;

if(in.examDialogMode == DialogMode.EDITEXAM){
	in.listDeletedQuestion.add(in.questionDatatableDTO.seletedQuestion.question);
}
in.questionDatatableDTO.reIndexListQuesDTO();
in.questionDatatableDTO.listQues.remove(in.questionDatatableDTO.seletedQuestion);
' #txt
Ts0 f28 type axonactive.vision.training.TeacherOverview.TeacherOverviewData #txt
Ts0 f28 1262 116 36 24 20 -2 #rect
Ts0 f28 @|StepIcon #fIcon
Ts0 f65 guid 147A965C99EADE66 #txt
Ts0 f65 type axonactive.vision.training.TeacherOverview.TeacherOverviewData #txt
Ts0 f65 actionDecl 'axonactive.vision.training.TeacherOverview.TeacherOverviewData out;
' #txt
Ts0 f65 actionTable 'out=in;
' #txt
Ts0 f65 @C|.xml '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<elementInfo>
    <language>
        <name>editQuestion</name>
        <nameStyle>12,5,7
</nameStyle>
    </language>
</elementInfo>
' #txt
Ts0 f65 1526 54 20 20 13 0 #rect
Ts0 f65 @|RichDialogProcessStartIcon #fIcon
Ts0 f61 guid 147A965C99BD5CD0 #txt
Ts0 f61 type axonactive.vision.training.TeacherOverview.TeacherOverviewData #txt
Ts0 f61 actionDecl 'axonactive.vision.training.TeacherOverview.TeacherOverviewData out;
' #txt
Ts0 f61 actionTable 'out=in;
' #txt
Ts0 f61 @C|.xml '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<elementInfo>
    <language>
        <name>saveQuestion</name>
        <nameStyle>12,5,7
</nameStyle>
    </language>
</elementInfo>
' #txt
Ts0 f61 1654 54 20 20 13 0 #rect
Ts0 f61 @|RichDialogProcessStartIcon #fIcon
Ts0 f35 type axonactive.vision.training.TeacherOverview.TeacherOverviewData #txt
Ts0 f35 1654 182 20 20 13 0 #rect
Ts0 f35 @|RichDialogProcessEndIcon #fIcon
Ts0 f31 type axonactive.vision.training.TeacherOverview.TeacherOverviewData #txt
Ts0 f31 1398 182 20 20 13 0 #rect
Ts0 f31 @|RichDialogProcessEndIcon #fIcon
Ts0 f67 actionDecl 'axonactive.vision.training.TeacherOverview.TeacherOverviewData out;
' #txt
Ts0 f67 actionTable 'out=in;
' #txt
Ts0 f67 actionCode 'import axonactive.vision.training.enumtype.DialogMode;
in.editedQuestionDTO = in.questionDatatableDTO.seletedQuestion;
in.questionDialogMode=DialogMode.EDITQUES;
in.questionDialogTitle = ivy.cms.co("/axonactive/vision/training/msgEditQuestionDlgHeader");' #txt
Ts0 f67 type axonactive.vision.training.TeacherOverview.TeacherOverviewData #txt
Ts0 f67 1518 116 36 24 20 -2 #rect
Ts0 f67 @|StepIcon #fIcon
Ts0 f66 type axonactive.vision.training.TeacherOverview.TeacherOverviewData #txt
Ts0 f66 1526 182 20 20 13 0 #rect
Ts0 f66 @|RichDialogProcessEndIcon #fIcon
Ts0 f26 guid 147A965C99E87119 #txt
Ts0 f26 type axonactive.vision.training.TeacherOverview.TeacherOverviewData #txt
Ts0 f26 actionDecl 'axonactive.vision.training.TeacherOverview.TeacherOverviewData out;
' #txt
Ts0 f26 actionTable 'out=in;
' #txt
Ts0 f26 @C|.xml '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<elementInfo>
    <language>
        <name>removeQuestion</name>
        <nameStyle>14,5,7
</nameStyle>
    </language>
</elementInfo>
' #txt
Ts0 f26 1270 54 20 20 13 0 #rect
Ts0 f26 @|RichDialogProcessStartIcon #fIcon
Ts0 f27 type axonactive.vision.training.TeacherOverview.TeacherOverviewData #txt
Ts0 f27 1270 182 20 20 13 0 #rect
Ts0 f27 @|RichDialogProcessEndIcon #fIcon
Ts0 f33 actionDecl 'axonactive.vision.training.TeacherOverview.TeacherOverviewData out;
' #txt
Ts0 f33 actionTable 'out=in;
' #txt
Ts0 f33 actionCode 'import org.primefaces.context.RequestContext;
import axonactive.vision.training.enumtype.DialogMode;
import axonactive.vision.training.dto.QuestionDTO;
in.questionDialogTitle = ivy.cms.co("/axonactive/vision/training/msgAddQuestionDlgHeader");
in.editedQuestionDTO = new QuestionDTO();
in.questionDialogMode=DialogMode.COMPOSEQUES;
RequestContext.getCurrentInstance().update("editingQuesDialog");' #txt
Ts0 f33 type axonactive.vision.training.TeacherOverview.TeacherOverviewData #txt
Ts0 f33 1390 116 36 24 20 -2 #rect
Ts0 f33 @|StepIcon #fIcon
Ts0 f30 guid 147A965C99D2F9D3 #txt
Ts0 f30 type axonactive.vision.training.TeacherOverview.TeacherOverviewData #txt
Ts0 f30 actionDecl 'axonactive.vision.training.TeacherOverview.TeacherOverviewData out;
' #txt
Ts0 f30 actionTable 'out=in;
' #txt
Ts0 f30 @C|.xml '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<elementInfo>
    <language>
        <name>addQuestion</name>
        <nameStyle>11,5,7
</nameStyle>
    </language>
</elementInfo>
' #txt
Ts0 f30 1398 54 20 20 13 0 #rect
Ts0 f30 @|RichDialogProcessStartIcon #fIcon
Ts0 f63 actionDecl 'axonactive.vision.training.TeacherOverview.TeacherOverviewData out;
' #txt
Ts0 f63 actionTable 'out=in;
' #txt
Ts0 f63 actionCode 'import axonactive.vision.training.enumtype.DialogMode;
import axonactive.vision.training.dto.QuestionDTO;
import org.primefaces.context.RequestContext;

in.editedQuestionDTO.question.examID = in.selectedExam.id;
in.editedQuestionDTO.question.answer = "";
if(in.editedQuestionDTO.question.type=="Single choice"){
	in.editedQuestionDTO.question.answer = in.editedQuestionDTO.selectedRadio;
} else {
	int size = in.editedQuestionDTO.listSelectedCheckBox.size();
	for(int i=0; i<size-1; i++) {
		in.editedQuestionDTO.question.answer += in.editedQuestionDTO.listSelectedCheckBox.get(i) + "-";
	}
	in.editedQuestionDTO.question.answer +=in.editedQuestionDTO.listSelectedCheckBox.get(size-1);
}
if(!(in.examDialogMode==DialogMode.EDITEXAM && in.questionDialogMode==DialogMode.EDITQUES)){
	int index = in.questionDatatableDTO.listQues.size();
	ivy.log.info("save: " +index);
	in.editedQuestionDTO.index = index;
	in.questionDatatableDTO.listQues.add(in.editedQuestionDTO);
}
in.editedQuestionDTO = new QuestionDTO();

RequestContext.getCurrentInstance().execute("editingQuesDialog.hide()");' #txt
Ts0 f63 type axonactive.vision.training.TeacherOverview.TeacherOverviewData #txt
Ts0 f63 1648 116 33 24 20 -2 #rect
Ts0 f63 @|StepIcon #fIcon
Ts0 f34 expr out #txt
Ts0 f34 1408 74 1408 116 #arcP
Ts0 f68 expr out #txt
Ts0 f68 1536 74 1536 116 #arcP
Ts0 f47 expr out #txt
Ts0 f47 1280 140 1280 182 #arcP
Ts0 f29 expr out #txt
Ts0 f29 1280 74 1280 116 #arcP
Ts0 f69 expr out #txt
Ts0 f69 1536 140 1536 182 #arcP
Ts0 f32 expr out #txt
Ts0 f32 1408 140 1408 182 #arcP
Ts0 f36 expr out #txt
Ts0 f36 1663 140 1663 182 #arcP
Ts0 f64 expr out #txt
Ts0 f64 1663 73 1663 116 #arcP
Ts0 f39 guid 147AA21A9F392443 #txt
Ts0 f39 type axonactive.vision.training.TeacherOverview.TeacherOverviewData #txt
Ts0 f39 actionDecl 'axonactive.vision.training.TeacherOverview.TeacherOverviewData out;
' #txt
Ts0 f39 actionTable 'out=in;
' #txt
Ts0 f39 @C|.xml '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<elementInfo>
    <language>
        <name>resetQuestion</name>
        <nameStyle>13,5,7
</nameStyle>
    </language>
</elementInfo>
' #txt
Ts0 f39 1782 54 20 20 13 0 #rect
Ts0 f39 @|RichDialogProcessStartIcon #fIcon
Ts0 f62 type axonactive.vision.training.TeacherOverview.TeacherOverviewData #txt
Ts0 f62 1782 182 20 20 13 0 #rect
Ts0 f62 @|RichDialogProcessEndIcon #fIcon
Ts0 f71 actionDecl 'axonactive.vision.training.TeacherOverview.TeacherOverviewData out;
' #txt
Ts0 f71 actionTable 'out=in;
' #txt
Ts0 f71 actionCode 'import axonactive.vision.training.dto.QuestionDTO;
import org.primefaces.context.RequestContext;
RequestContext.getCurrentInstance().reset("questionInfo");
in.editedQuestionDTO = new QuestionDTO();' #txt
Ts0 f71 type axonactive.vision.training.TeacherOverview.TeacherOverviewData #txt
Ts0 f71 1774 116 36 24 20 -2 #rect
Ts0 f71 @|StepIcon #fIcon
Ts0 f72 expr out #txt
Ts0 f72 1792 74 1792 116 #arcP
Ts0 f70 expr out #txt
Ts0 f70 1792 140 1792 182 #arcP
Ts0 f73 guid 147AA8AEFBCF7281 #txt
Ts0 f73 type axonactive.vision.training.TeacherOverview.TeacherOverviewData #txt
Ts0 f73 actionDecl 'axonactive.vision.training.TeacherOverview.TeacherOverviewData out;
' #txt
Ts0 f73 actionTable 'out=in;
' #txt
Ts0 f73 @C|.xml '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<elementInfo>
    <language>
        <name>resetExam</name>
        <nameStyle>9,5,7
</nameStyle>
    </language>
</elementInfo>
' #txt
Ts0 f73 854 54 20 20 13 0 #rect
Ts0 f73 @|RichDialogProcessStartIcon #fIcon
Ts0 f74 type axonactive.vision.training.TeacherOverview.TeacherOverviewData #txt
Ts0 f74 854 182 20 20 13 0 #rect
Ts0 f74 @|RichDialogProcessEndIcon #fIcon
Ts0 f75 actionDecl 'axonactive.vision.training.TeacherOverview.TeacherOverviewData out;
' #txt
Ts0 f75 actionTable 'out=in;
' #txt
Ts0 f75 actionCode 'import axonactive.vision.training.dto.QuestionDatatableDTO;
import axonactive.vision.training.entity.Examination;
import org.primefaces.context.RequestContext;
RequestContext.getCurrentInstance().reset("examInfo");
in.editedExam = new Examination();
in.questionDatatableDTO = new QuestionDatatableDTO();' #txt
Ts0 f75 type axonactive.vision.training.TeacherOverview.TeacherOverviewData #txt
Ts0 f75 846 116 36 24 20 -2 #rect
Ts0 f75 @|StepIcon #fIcon
Ts0 f76 expr out #txt
Ts0 f76 864 74 864 116 #arcP
Ts0 f77 expr out #txt
Ts0 f77 864 140 864 182 #arcP
>Proto Ts0 .type axonactive.vision.training.TeacherOverview.TeacherOverviewData #txt
>Proto Ts0 .processKind HTML_DIALOG #txt
>Proto Ts0 .xml '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<elementInfo>
    <language>
        <swimlaneLabel></swimlaneLabel>
        <swimlaneLabel></swimlaneLabel>
    </language>
    <swimlaneSize>600</swimlaneSize>
    <swimlaneColor>-16724788</swimlaneColor>
</elementInfo>
' #txt
>Proto Ts0 -8 -8 16 16 16 26 #rect
>Proto Ts0 '' #fIcon
Ts0 f5 mainOut f9 tail #connect
Ts0 f9 head f8 mainIn #connect
Ts0 f8 mainOut f11 tail #connect
Ts0 f11 head f10 mainIn #connect
Ts0 f10 mainOut f7 tail #connect
Ts0 f7 head f6 mainIn #connect
Ts0 f0 mainOut f4 tail #connect
Ts0 f4 head f3 mainIn #connect
Ts0 f3 mainOut f1 tail #connect
Ts0 f1 head f17 mainIn #connect
Ts0 f17 mainOut f15 tail #connect
Ts0 f15 head f14 mainIn #connect
Ts0 f14 mainOut f2 tail #connect
Ts0 f2 head f13 mainIn #connect
Ts0 f12 mainOut f16 tail #connect
Ts0 f16 head f17 mainIn #connect
Ts0 f23 mainOut f22 tail #connect
Ts0 f22 head f19 mainIn #connect
Ts0 f40 mainOut f43 tail #connect
Ts0 f43 head f41 mainIn #connect
Ts0 f41 mainOut f44 tail #connect
Ts0 f44 head f42 mainIn #connect
Ts0 f42 mainOut f45 tail #connect
Ts0 f45 head f17 mainIn #connect
Ts0 f20 mainOut f53 tail #connect
Ts0 f53 head f50 mainIn #connect
Ts0 f50 mainOut f21 tail #connect
Ts0 f21 head f23 mainIn #connect
Ts0 f18 mainOut f55 tail #connect
Ts0 f55 head f54 mainIn #connect
Ts0 f54 mainOut f24 tail #connect
Ts0 f24 head f23 mainIn #connect
Ts0 f46 mainOut f52 tail #connect
Ts0 f52 head f51 mainIn #connect
Ts0 f51 mainOut f49 tail #connect
Ts0 f49 head f48 mainIn #connect
Ts0 f48 mainOut f38 tail #connect
Ts0 f38 head f37 mainIn #connect
Ts0 f37 mainOut f25 tail #connect
Ts0 f25 head f3 mainIn #connect
Ts0 f28 mainOut f47 tail #connect
Ts0 f47 head f27 mainIn #connect
Ts0 f26 mainOut f29 tail #connect
Ts0 f29 head f28 mainIn #connect
Ts0 f30 mainOut f34 tail #connect
Ts0 f34 head f33 mainIn #connect
Ts0 f33 mainOut f32 tail #connect
Ts0 f32 head f31 mainIn #connect
Ts0 f65 mainOut f68 tail #connect
Ts0 f68 head f67 mainIn #connect
Ts0 f67 mainOut f69 tail #connect
Ts0 f69 head f66 mainIn #connect
Ts0 f61 mainOut f64 tail #connect
Ts0 f64 head f63 mainIn #connect
Ts0 f63 mainOut f36 tail #connect
Ts0 f36 head f35 mainIn #connect
Ts0 f39 mainOut f72 tail #connect
Ts0 f72 head f71 mainIn #connect
Ts0 f71 mainOut f70 tail #connect
Ts0 f70 head f62 mainIn #connect
Ts0 f73 mainOut f76 tail #connect
Ts0 f76 head f75 mainIn #connect
Ts0 f75 mainOut f77 tail #connect
Ts0 f77 head f74 mainIn #connect
